<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OA协同办公系统</title>
<link href="css/table.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.ulemail{ list-style:none; margin:0; margin-left:20px}
.ulemail li{ font-size:12px; color:#8fa1af}
.ulxz{list-style:none; margin:5px 0 0 0}
.ulxz li{float:left; margin-left:15px}
a{color:#164a84}
a:link {text-decoration:none;}
a:visited {text-decoration: none;}
a:hover {text-decoration: underline;}
a:active {text-decoration: none;}
</style>
</head>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
 function loadFile(val){
		var fileId=$("#fileArray").val();
		if(fileId!=''&&fileId!='null'){
			var param={"fileArray":fileId};
			$.post("getFileList.action",param,function(data) {
				var list=data.fileList;
				for(var i=0;i<list.length;i++){
					$("#"+val).prepend("<li>"+list[i].name+"&nbsp;<a href=\"downLoadFile.action?fileId="+list[i].id+"\">下载</a></li>");
		        }
			},"json");
		}
	} 
	
</script>
<body onload="loadFile('filetable')">
	<input type="hidden" id="fileArray" value="${inMail.fileId}">
    <table style="background:#eef3f6;width:100%;height:110px; border-bottom:#8ca5b9  double 1px"><tr><td>
      <ul class="ulemail">
      		<li>
      		<font style="font-size:16px;font-weight:bolder; margin-left:15px; line-height:40px">
	       	 ${inMail.title}
	        </font>
      		</li>
            <li>
            发件人：<font style="font-size:12; color:#5fa207; font-weight:bolder">${inMail.sendName}</font>
            </li>
            <li>
              收件人：<font color="#000000">${inMail.receiverName}</font>
            </li>
            <li>
           	时&nbsp;&nbsp;间：${inMail.createTime }
            </li>
            <li>
              抄送人：${inMail.CNames}
            </li>
            <li>附件：
                <ul class="ulxz" id="filetable">
                
                </ul>
            </li>
      </ul>
    </td></tr></table>
    <table align="center" height="200px" width="650px" style=" margin-top:20px; width:98%"><tr>
    <td style="word-break:break-all; ">
   		${inMail.content}
    </td>
    </tr></table>
    <div style="width:100%;background:#eef3f6; height:35px; margin-top:20px; border-top:#8ca5b9  double 1px; line-height:20px">
    &nbsp;&nbsp;<input class="button_04" type="button"  onclick="javascript:window.close()" value="关闭" />
    <input class="button_04" onclick="window.location='mailBack.action?statu=back&mailId=${inMail.id}'" type="button" value="回复" />
    <input class="button_04" onclick="window.location='mailBack.action?statu=send&mailId=${inMail.id}'" type="button" value="转发" />
    </div>
</body>
</html>